﻿using System;
using System.Collections.Generic;

namespace Borg
{
    public class SelectionChangedEventArgs : EventArgs
    {
        private readonly IList<PlugInfo> _addedPlugs;
        private readonly IList<PlugInfo> _removedPlugs;

        private readonly SlotInfo _slot;

        public IList<PlugInfo> AddedPlugs
        {
            get { return _addedPlugs; }
        }

        public IList<PlugInfo> RemovedPlugs
        {
            get { return _removedPlugs; }
        }

        public SlotInfo SlotInfo
        {
            get { return _slot; }
        }

        public SelectionChangedEventArgs(SlotInfo slot, IList<PlugInfo> addedPlugs, IList<PlugInfo> removedPlugs)
        {
            _slot = slot;
            _addedPlugs = addedPlugs;
            _removedPlugs = removedPlugs;
        }
    }

    public delegate void SelectionChangedEventHandler(object sender, SelectionChangedEventArgs args);
}

